package main.java.LeetCode.ClassicalAlgorithm.Worker.Impl.chain;

public class ThreadNode {
    private Thread thread;
    private ThreadNode next;
    private int size;

    public ThreadNode(Thread thread){
        this.thread = thread;
    }

    public Thread getThread() {
        return thread;
    }

    public void setThread(Thread thread) {
        this.thread = thread;
    }

    public ThreadNode getNext() {
        return next;
    }

    public void setNext(ThreadNode next) {
        this.next = next;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }
}
